package org.aswing.tree;

extern class DefaultTreeSelectionModel extends flash.events.EventDispatcher, implements TreeSelectionModel {
	function new() : Void;
	function addPropertyChangeListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addSelectionPath(p0 : TreePath, ?p1 : Bool) : Void;
	function addSelectionPaths(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function addTreeSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function clearSelection(?p0 : Bool) : Void;
	function getLeadSelectionPath() : TreePath;
	function getLeadSelectionRow() : Int;
	function getMaxSelectionRow() : Int;
	function getMinSelectionRow() : Int;
	function getRowMapper() : RowMapper;
	function getSelectionCount() : Int;
	function getSelectionMode() : Int;
	function getSelectionPath() : TreePath;
	function getSelectionPaths() : Array<Dynamic>;
	function getSelectionRows() : Array<Dynamic>;
	function isPathSelected(p0 : TreePath) : Bool;
	function isRowSelected(p0 : Int) : Bool;
	function isSelectionEmpty() : Bool;
	function removePropertyChangeListener(p0 : Dynamic) : Void;
	function removeSelectionPath(p0 : TreePath, ?p1 : Bool) : Void;
	function removeSelectionPaths(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function removeTreeSelectionListener(p0 : Dynamic) : Void;
	function resetRowSelection() : Void;
	function setRowMapper(p0 : RowMapper) : Void;
	function setSelectionMode(p0 : Int) : Void;
	function setSelectionPath(p0 : TreePath, ?p1 : Bool) : Void;
	function setSelectionPaths(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	private function firePropertyChange(p0 : String, p1 : Dynamic, p2 : Dynamic) : Void;
	private function fireValueChanged(p0 : org.aswing.event.TreeSelectionEvent) : Void;
	static var CONTIGUOUS_TREE_SELECTION : Int;
	static var DISCONTIGUOUS_TREE_SELECTION : Int;
	static var ON_PROPERTY_CHANGED : String;
	static var ON_SELECTION_CHANGED : String;
	static var SELECTION_MODE_PROPERTY : String;
	static var SINGLE_TREE_SELECTION : Int;
}
